package com.jmu.bishe.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * OrderList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ORDER_LIST", schema = "HUANG")
public class OrderList implements java.io.Serializable {

	private static final long serialVersionUID = 1765235707395392610L;
	private String oid;
	private String sid;
	private Date orderTime;
	private BigDecimal orderStatus;
	private String userId;

	// Constructors

	/** default constructor */
	public OrderList() {
	}

	/** minimal constructor */
	public OrderList(String oid) {
		this.oid = oid;
	}

	/** full constructor */
	public OrderList(String oid, String sid, Date orderTime,
			BigDecimal orderStatus, String userId) {
		this.oid = oid;
		this.sid = sid;
		this.orderTime = orderTime;
		this.orderStatus = orderStatus;
		this.userId = userId;
	}

	// Property accessors
	@Id
	@Column(name = "OID", unique = true, nullable = false, length = 20)
	public String getOid() {
		return this.oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	@Column(name = "SID", length = 20)
	public String getSid() {
		return this.sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ORDER_TIME", length = 7)
	public Date getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	@Column(name = "ORDER_STATUS", precision = 22, scale = 0)
	public BigDecimal getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(BigDecimal orderStatus) {
		this.orderStatus = orderStatus;
	}

	@Column(name = "USER_ID", length = 20)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

}